package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class DynamicInfoResponse {
    @ApiModelProperty("动态ID")
    private Integer dynamicId;
    @ApiModelProperty("类型:1文章 2动态")
    private Integer type;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("时间")
    private long time;
    @ApiModelProperty("图片（多张逗号分隔")
    private String photos;
    @ApiModelProperty("详情")
    private String details;
    @ApiModelProperty(value = "评论列表", dataType = "DynamicInfoResponse.Comment")
    private List<Comment> commentList;

    @ApiModelProperty("公司id")
    private Integer companyId;
    @ApiModelProperty("公司log")
    private String companyLogo;
    @ApiModelProperty("公司名称")
    private String companyName;
    @ApiModelProperty("公司等级")
    private Integer companyLevel;
    @ApiModelProperty("是否中科公信: 1有")
    private Integer isZk;

    @ApiModelProperty("评论人数")
    private Integer commentNum;
    @ApiModelProperty("点赞人数")
    private Integer doThumbsNum;
    @ApiModelProperty("是否点赞：0无 1已点赞")
    private Integer thumbsFlag;

    @ApiModel("DynamicInfoResponse.Comment")
    @Data
    @Builder
    public static class Comment {
        @ApiModelProperty("评论ID")
        private Integer commentId;
        @ApiModelProperty("评论人名")
        private String userName;
        @ApiModelProperty("回复人名(可能为无)")
        private String replyUserName;
        @ApiModelProperty("评论内容")
        private String content;
    }
}
